package com.pig4cloud.pig.module.service.wx;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.common.mybatis.core.BaseService;
import com.pig4cloud.pig.module.api.entity.wx.UserRegCashRecord;
import com.pig4cloud.pig.module.api.entity.wx.WxUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 用户分享后得现金奖励的记录Service接口
 *
 * @author ruoyi
 * @date 2022-06-10
 */
public interface IUserRegCashRecordService extends BaseService<UserRegCashRecord> {

	Page<UserRegCashRecord> selectRecordList(Page<UserRegCashRecord> page, Map<String,Object> map);

	Double selectCashMoney(@Param("map") Map<String,Object> map);

	List<UserRegCashRecord> selectRecordListExport(Map<String,Object> map);


	/**
	 *  获取商户入驻审核通过后的打款记录
	 * @return
	 */
	UserRegCashRecord getRecordByMerCheck(int merId, int userId);


	/**
	 * 加领取现金记录
	 * @return
	 */
	int addCashRecord(WxUser user, int regUserId, int record_type);

}
